import Mock from 'mockjs'
import decision from './decision/access.js'

// 登陆假数据
Mock.mock('/student/passwordLogin', 'post', decision.loginData) //登陆
Mock.mock('/student/register', 'post', decision.registerData) //注册
Mock.mock('/student/changePassword', 'post', decision.changePasswdData) //修改学生密码

//学生假数据
Mock.mock('/student/getStudentInfo?token=710260712&studentID=710260712', 'get', decision.studentInfo) //获取学生信息
Mock.mock('/student/changeStudentInfo', 'post', decision.changeStudentInfoData) //修改学生信息
Mock.mock('/student/getStudentInfo?token=710260712&studentID=7102607121', 'get', decision.afterChangeStudentInfo) //修改学生信息之后重新获取信息测试
Mock.mock('/student/getRecordsList', 'post', decision.recordList) // 获取记录
Mock.mock('/student/deleteRecord', 'post', decision.deleteRecordData) // 删除记录
Mock.mock(RegExp('/student/getQuestion'+'.*'), 'get', decision.questionInfo) // 获取题目详细信息

//在线练习假数据
    //在线练习页面
    Mock.mock('/student/getQueType', 'get', decision.queTypeListData) // 获取题目类型信息
    Mock.mock('/student/getCollage', 'get', decision.collageList) // 获取学院信息
    Mock.mock(RegExp('/student/getCourse'+'.*'), 'get', decision.courseList) // 获取学院课程信息
    Mock.mock(RegExp('/student/getChapter'+'.*'), 'get', decision.capList) // 获取学院章节信息
    Mock.mock(RegExp('/student/paper'), 'post', decision.paperData) // 获取学院章节信息
    Mock.mock(RegExp('/student/addRecord'), 'post', decision.addRecord) // 获取学院章节信息


//排名假数据
Mock.mock(RegExp('/student/getRanking'+'.*'), 'get', decision.rankList) //获取排名信息
Mock.mock(RegExp('/student/getMajor'+'.*'), 'get', decision.majorList) // 获取专业信息
Mock.mock(RegExp('/student/getClass'+'.*'), 'get', decision.classList) // 获取专业信息
export default Mock;
